<template>
  <div>
    <div class="m-tab">
      <router-link to="/houseManage/contract"><span>合同</span></router-link>
      <router-link to="/houseManage/reservation"><span>预约</span></router-link>
      <router-link to="/houseManage/order"><span>订单</span></router-link>
      <router-link to="/houseManage/landlordTenant"><span>租客</span></router-link>
      <router-link to="/houseManage/myHouse"><span>房源</span></router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<style lang="css" scoped>
.m-tab {
  background: #fff;
  height: 2.375rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, .15);
  font-size: .65rem;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.m-tab a {
  color: #878787;
  flex: 1;
  text-align: center;
  line-height: 1;
  padding-bottom: 0.4rem;
}
.m-tab a span{
  position: relative;
}
.m-tab a span::after {
  content: '';
  position: absolute;
  bottom: -.35rem;
  left: 0;
  right: 0;
  height: .1rem;
  background: none;
}
.m-tab a.router-link-active {
  color: #ff9600;
}
.m-tab a.router-link-active span::after {
  background: #ff9600;
}
</style>
